package cz.data.common.support.metadata;

import cz.data.common.support.DataTypeEnum;

public enum VerticaDataTypeEnum implements DataTypeEnum {

    VARCHAR("varchar", "变长字符串"),
    CHAR("char", "定长字符串"),
    TEXT("long varchar", "长文本"),
    INTEGER("integer", "int整型"),
    NUMERIC("numeric", "numeric变长小数"),
    DATE("date", "日期"),
    DATETIME("datetime", "日期时间"),
    TIMESTAMP("timestamp", "时间戳"),
    TIME("time", "time时间"),
    BOOLEAN("boolean", "布尔"),
    BINARY("binary", "定长二进制"),
    VARBINARY("varbinary", "变长二进制"),
    ;

    private final String value;
    private final String title;

    VerticaDataTypeEnum(String value, String title) {
        this.value = value;
        this.title = title;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getTitle() {
        return title;
    }
}
